<?php
namespace app\model\book;

use think\db\Query;
use think\facade\Db;
use think\Model;
class OrderDetailModel extends Model {

    protected $table = 'order_detail';

    protected $field = '';

    public function goodsDetail() {
        return $this->hasOne(BookModel::class,'id','book_id');
    }
}